package com.lyc.wanandroid_kotlin.ui.activity.login.mvp.model

import com.lyc.wanandroid_kotlin.base.BaseModel
import com.lyc.wanandroid_kotlin.bean.HttpResult
import com.lyc.wanandroid_kotlin.bean.LoginData
import com.lyc.wanandroid_kotlin.http.RetrofitHelper
import com.lyc.wanandroid_kotlin.ui.activity.login.mvp.contract.LoginContract
import io.reactivex.Observable

/**
 * ClassName:com.lyc.wanandroid_kotlin.ui.activity.login.mvp.model
 * Description:
 */
class LoginModel : BaseModel(), LoginContract.Model {
    override fun loginWanAndroid(
        username: String,
        password: String
    ): Observable<HttpResult<LoginData>> {
        return RetrofitHelper.service.loginWanAndroid(username, password)
    }
}